package com.geek.project.geekauth.handler;

import com.geek.project.geekauthapi.model.vo.LoginVo;
import org.springframework.stereotype.Component;

@Component
public class ValidateHandler extends Handler {

    @Override
    public void doHandler(LoginVo user) {
//        if(StringUtils.isEmpty(user.getUsername()) || StringUtils.isEmpty(user.getPassword())){
//            System.out.println("用户名和密码为空");
//            return;
//        }
//        System.out.println("用户名和密码不为空，可以往下执行");
        if(null != next) {
            next.doHandler(user);
        }
    }
}
